package com.kmxd.ams.client.search.dto;

import com.kmxd.ams.app.search.SearchTypeConst;
import com.kmxd.ams.core.common.bo.ConditionBO;
import com.kmxd.ams.core.common.enums.ArchStatusEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.Serializable;
import java.util.List;
import javax.validation.constraints.NotNull;
import lombok.Data;

/**
 * 组合检索
 *
 * @author nickbi
 */
@Schema(description = "组合检索")
@Data
public class SearchByConditionDTO implements Serializable {

  /** 门类配置id 关联s_archive_type表主键 */
  @Schema(description = "门类主键")
  @NotNull(message = "门类主键不能为空")
  private Long archTypeId;

  /** 所属表名 */
  @Schema(description = "所属表名")
  @NotNull(message = "所属表不能为空")
  private String tableId;

  private List<ConditionBO> condition;

  @Schema(description = "数量")
  private Long size = 20L;

  @Schema(description = "页码")
  private Long current = 1L;

  @Schema(description = "状态")
  @NotNull(message = "状态不能为空")
  private Integer status = ArchStatusEnum.S0.getCode();

  @Schema(description = "数据类型")
  private Integer type = SearchTypeConst.MYSQL;

  @Schema(description = "出库过滤")
  private Boolean outArch;
}
